//
//  AUAddressPickerModel.swift
//  CreditLoans
//
//  Created by 谢强 on 2017/12/13.
//  Copyright © 2017年 com.ucfpay. All rights reserved.
//

import UIKit

class AUAddressPickerModel: NSObject {
    
    @objc var name: String = ""
    @objc var _child: [AUAddressPickerModel] = [AUAddressPickerModel]()
    
    var selected: Bool = false
    
    init(dict: [String: Any]) {
        super.init()
        
        setValuesForKeys(dict)
        
        if let childs = dict["_child"] as? [[String: Any]] {
            var tempArray = [AUAddressPickerModel]()
            for child in childs {
                let model = AUAddressPickerModel(dict: child)
                tempArray.append(model)
            }
            _child = tempArray
        }
    }
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
}
